package com.niiwoo.civet.user.enums;


import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * OCR银行卡开关
 */
@Getter
@AllArgsConstructor
public enum OCRBankSwitchEnum {

    OFF((byte) 0, "关闭"),
    ON((byte) 1, "开启");

    private Byte value;

    private String desc;

    public static OCRBankSwitchEnum of(byte value) {
        for (OCRBankSwitchEnum t : values()) {
            if (t.value == value) {
                return t;
            }
        }
        return null;
    }


}
